package com.foreverwin.jzymes.production.grind.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.util.Date;
import java.util.Date;
import java.util.Date;

/**
 * DDG检验表 Z_GRIND_CHECK
 * 
 * @author ervin
 * @date 2019-03-19
 */
public class GrindCheck
{
	private static final long serialVersionUID = 1L;
	
	/** 主键 */
	private String handle;
	/** 站点 */
	private String site;
	/** 机种 */
	private String machineType;
	/** 资源 */
	private String resrce;
	/** 物料 */
	private String itemBo;
	/** 抽检时间 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date checkTime;
	/** 良品数量 */
	private Long okQty;
	/** 不良品数量 */
	private Long ncQty;
	/** 创建日期 */
	private Date createdDateTime;
	/** 更新日期 */
	private Date updatedDateTime;
	/** 创建人员 */
	private String createUserBo;
	/** 更新人员 */
	private String updateUserBo;

	public void setHandle(String handle) 
	{
		this.handle = handle;
	}

	public String getHandle() 
	{
		return handle;
	}
	public void setSite(String site) 
	{
		this.site = site;
	}

	public String getSite() 
	{
		return site;
	}
	public void setMachineType(String machineType) 
	{
		this.machineType = machineType;
	}

	public String getMachineType() 
	{
		return machineType;
	}
	public void setResrce(String resrce) 
	{
		this.resrce = resrce;
	}

	public String getResrce() 
	{
		return resrce;
	}
	public void setItemBo(String itemBo) 
	{
		this.itemBo = itemBo;
	}

	public String getItemBo() 
	{
		return itemBo;
	}
	public void setCheckTime(Date checkTime) 
	{
		this.checkTime = checkTime;
	}

	public Date getCheckTime() 
	{
		return checkTime;
	}
	public void setOkQty(Long okQty) 
	{
		this.okQty = okQty;
	}

	public Long getOkQty() 
	{
		return okQty;
	}
	public void setNcQty(Long ncQty) 
	{
		this.ncQty = ncQty;
	}

	public Long getNcQty() 
	{
		return ncQty;
	}
	public void setCreatedDateTime(Date createdDateTime) 
	{
		this.createdDateTime = createdDateTime;
	}

	public Date getCreatedDateTime() 
	{
		return createdDateTime;
	}
	public void setUpdatedDateTime(Date updatedDateTime) 
	{
		this.updatedDateTime = updatedDateTime;
	}

	public Date getUpdatedDateTime() 
	{
		return updatedDateTime;
	}
	public void setCreateUserBo(String createUserBo) 
	{
		this.createUserBo = createUserBo;
	}

	public String getCreateUserBo() 
	{
		return createUserBo;
	}
	public void setUpdateUserBo(String updateUserBo) 
	{
		this.updateUserBo = updateUserBo;
	}

	public String getUpdateUserBo() 
	{
		return updateUserBo;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("handle", getHandle())
            .append("site", getSite())
            .append("machineType", getMachineType())
            .append("resrce", getResrce())
            .append("itemBo", getItemBo())
            .append("checkTime", getCheckTime())
            .append("okQty", getOkQty())
            .append("ncQty", getNcQty())
            .append("createdDateTime", getCreatedDateTime())
            .append("updatedDateTime", getUpdatedDateTime())
            .append("createUserBo", getCreateUserBo())
            .append("updateUserBo", getUpdateUserBo())
            .toString();
    }
}
